package pet;

public class Pet {
	private String hao;
	private String pin;
	private int age;
	private int shu;
	private int pay;
	public Pet(){
		
	}
	public Pet(String a,String b,int c,int d,int e){
		this.hao=a;
		this.pin=b;
		this.age=c;
		this.shu=d;
		this.pay=e;
		
	}
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((hao == null) ? 0 : hao.hashCode());
		return result;
	}
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Pet other = (Pet) obj;
		if (hao == null) {
			if (other.hao != null)
				return false;
		} else if (!hao.equals(other.hao))
			return false;
		return true;
	}
	public String getHao() {
		return hao;
	}
	public void setHao(String hao) {
		this.hao = hao;
	}
	public String getPin() {
		return pin;
	}
	public void setPin(String pin) {
		this.pin = pin;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public int getShu() {
		return shu;
	}
	public void setShu(int shu) {
		this.shu = shu;
	}
	public int getPay() {
		return pay;
	}
	public void setPay(int pay) {
		this.pay = pay;
	}
	
	
}
